import { Article } from "@prisma/client";
import { ApiProperty } from "@nestjs/swagger";

export class ArticleEntity implements Article {

    @ApiProperty()
    public id: number;
    
    @ApiProperty()
    public title: string;

    @ApiProperty()
    public content: string;
    
    @ApiProperty()
    public createdTime: Date;

    @ApiProperty()
    public updatedTime: Date;

    @ApiProperty()
    public uid: number;

} 
